package com.cc.moxingvoice.ui.login;

import android.databinding.DataBindingUtil;

import com.cc.moxingvoice.R;
import com.cc.moxingvoice.base.BaseActivity;
import com.cc.moxingvoice.databinding.ActivityLoginBinding;
import com.cc.moxingvoice.lock.AppBarLock;
import com.cc.moxingvoice.lock.LoginLock;

/**
 * 创建日期：2018/3/28 on 21:28
 * 描述：
 * 作者：郭士超
 * QQ：1169380200
 */

public class LoginActivity extends BaseActivity {

    private ActivityLoginBinding mBinding;
    private LoginLock mLock;
    private AppBarLock appBarLock;

    @Override
    protected void initBinding() {
        // 数据绑定操作，可以套用代码
        mBinding = DataBindingUtil.setContentView(this, R.layout.activity_login);
        mLock = new LoginLock(this, mBinding);
        mBinding.setLock(mLock);
        appBarLock = new AppBarLock(this, mLock, "登录", true);
        mBinding.appBar.setAppBarLock(appBarLock);
    }

    @Override
    protected void init() {

    }
}
